home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Sample Controls / PopupWindow / CPopupWindowError.cp < prev    next >
Encoding:
Text File  |  1996-12-20  |  1.1 KB  |  54 lines  |  [TEXT/CWIE]

  1. #include "ocheaders.h"
  2. #include "CBaseControl.h"
  3. #include "CErrorControl.h"
  4. #include "CPopupWindowControl.h"
  5. #include "CError.h"
  6. #include "CPopupWindowError.h"
  7. //#include "FnAssert.h"
  8.  
  9. #define MControl ((CPopupWindowControl *)mControl)
  10.  
  11. ///////////////////////////////////////////////////////////////////////////////
  12. //
  13. // CPopupWindowError::CPopupWindowError
  14. //
  15.  
  16. CPopupWindowError::CPopupWindowError(ErrorCode error) : CError(error)
  17. {
  18. }
  19.  
  20. CPopupWindowError::CPopupWindowError ( ErrorCode error, CErrorControl * control )
  21.     : CError(error, control)
  22. {
  23. }
  24.  
  25. ///////////////////////////////////////////////////////////////////////////////
  26. //
  27. // CPopupWindowError::HandleError
  28. //
  29.  
  30. void CPopupWindowError::HandleError ( void )
  31. {
  32.     switch ( mErrorCode )
  33.     {
  34.         case DATA_ALLOCATION_ERROR:
  35.         case NO_CNXN_PT_CONTAINER_ERROR:
  36.         case CANT_ADD_CNXN_PT_ERROR:
  37.         case CANT_ADVISE_CNXN_ERROR:
  38.         case EOF_AND_NO_IMAGE_ERROR:
  39.         case DATA_REALLOCATION_ERROR:
  40.         case IMAGE_READ_ERROR:
  41.         {
  42.             break;
  43.         }
  44.         case CANT_ENUM_OBJECTS_ERROR:
  45.         {
  46.             MControl->mCookie = -1;
  47.             break;
  48.         }
  49.             
  50.         default:
  51.             break;
  52.     }
  53. }
  54.